﻿using System;
using System.Collections;
using System.Collections.Generic;
using TMPro;
using UI.ExamplePanel;
using UnityEngine;
using UnityEngine.UI;

public enum GameState
{
    FirstTurn,
    SecondTurn
}

public class GameManager : Singleton<GameManager>
{
    public float timeScale;
    public Canvas canvas;
    public GameState curState;
    private bool isPlay = false;

    private Coroutine curCoroutine;

    public List<int> FristStateDeck = new List<int>();


    private void Start()
    {
        curState = GameState.FirstTurn;

        for(int i = 0; i < 14; i++)
        {
            for(int j = 0; j < 3; j++)
            {
                FristStateDeck.Add(i);
            }
        }
    }

    private void Update()
    {
        Time.timeScale = timeScale;
    }

    public void SetGameStart(bool isPlay)
    {
        this.isPlay = isPlay;
    }

    public void SwitchGameState(GameState state)
    {
        curState = state;
    }

    public void DebugToNet(string msg)
    {
        Debug.Log(msg);
    }

}
